package com.cskaoyan.service.promotionService;

import com.cskaoyan.bean.Coupon;
import com.cskaoyan.bean.CouponUser;
import com.cskaoyan.bean.promotionVO.couponVO.CouponListVO;
import com.cskaoyan.bean.promotionVO.coupon_userVO.CouponUserVO;
import com.cskaoyan.bean.wx_couponVO.DataBean;
import com.cskaoyan.bean.wx_couponVO.WxCouponListVO;
import com.cskaoyan.bean.wx_couponVO.WxSelectListVO;
import com.cskaoyan.bean.wx_couponVO.WxUserCouponsVO;

import java.util.List;

public interface CouponService {
    CouponListVO couponList(Integer page, Integer limit, String sort, String order,String name,Short type,Short status);

    Coupon couponAdd(Coupon coupon);

    int couponDel(Coupon coupon);

    Coupon couponUpdate(Coupon coupon);


    Coupon couponRead(Integer id);

    CouponUserVO couponListUser(Integer page, Integer limit, String sort, String order, Integer couponId, Integer userId, Short status);

    WxCouponListVO wxCouponList(Integer page, Integer size);

    WxUserCouponsVO myCouponList(Integer page, Integer size, Short status,Integer userId);

    int receiveCoupon(Integer couponId,Integer userId);

    int exchangeCoupon(String code,Integer userId);

    List<DataBean> selectlistCoupon(Integer id);
}
